Skip to content

fix: default format on import modal#7017

Merged
bijin-bruno merged 1 commit intousebruno:mainfrom
naman-bruno:feat/share-modal-format
Feb 2, 2026
Merged

fix: default format on import modal#7017
bijin-bruno merged 1 commit intousebruno:mainfrom
naman-bruno:feat/share-modal-format

Conversation

@naman-bruno
Copy link
Collaborator

@naman-bruno naman-bruno commented Feb 2, 2026

Description

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.

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

  • Chores
    • Updated default format handling in the collection import process for improved consistency and maintainability.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 2, 2026

Walkthrough

Replaces hardcoded 'bru' string with DEFAULT_COLLECTION_FORMAT constant in ImportCollectionLocation component's state initialization, centralizing format configuration management.

Changes

Cohort / File(s) Summary
ImportCollectionLocation Component
packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js
Imports DEFAULT_COLLECTION_FORMAT constant and updates collectionFormat state initialization to use the constant instead of hardcoded 'bru' string value.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested reviewers

  • helloanoop
  • bijin-bruno
  • lohit-bruno

Poem

🎯 A constant replaces the hardcoded way,
'Bru' now centralizes its sway,
No more scattered strings to confuse,
Just clean config ready to use! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: updating the default format selection in the import modal component.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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 and usage tips.

@bijin-bruno bijin-bruno merged commit 6e68040 into usebruno:main Feb 2, 2026
6 of 8 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