-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/ Import collection summary #4086
Draft
Pragadesh-45
wants to merge
25
commits into
usebruno:main
Choose a base branch
from
Pragadesh-45:feat/import-collection-summary
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Feat/ Import collection summary #4086
Pragadesh-45
wants to merge
25
commits into
usebruno:main
from
Pragadesh-45:feat/import-collection-summary
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…mproved error handling
- Implemented resizable tree view with drag-and-drop functionality - Added tabs for code and diff views with script type selection - Improved DiffViewer with theme-aware styling and script comparison - Refactored ImportSummary component to support more interactive script exploration - Updated styled components to support new UI interactions and theming
…er handling - Updated TreeView to support folder and request interactions - Enhanced DiffViewer to handle different script types and source types - Modified ImportSummary to support more flexible script comparison - Added support for comparing folder-level scripts and tests - Improved navigation and selection in import collection summary
- Enhanced diff generation logic to handle line comparisons more robustly - Updated StyledWrapper to improve diff visualization and theme support - Adjusted diff viewer settings for better readability - Removed unnecessary display settings for unchanged lines - Added dark theme compatibility for diff views
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR is an initial implementation of the concept idea for the Import Summary tab in the collection, along with storing a JSON file called
import-summary.json
. This file will store the import source, the entire Postman collection, and two types of Bruno collections:brunoCollectionUntranslated
: Contains the untranslated Bruno collection of Postman scripts.brunoCollection
: Contains the exact Bruno collection that will be created at that point.(While this approach is not the best, it is implemented as a prototype) The
import-summary.json
will be used by the Import Summary tab inside the collection settings.This tab will display a small tree-view, allowing us to choose specific items (folders/requests) and view the corresponding scripts. This view will show the differences between the scripts translated from Postman to Bruno.
Ideally, the view should be editable and have the capability to save changes, similar to resolving merge conflicts on VSCode. It will be a place to view and fix any bugs in the imported scripts. Since this is an Import Summary, it should also provide the necessary details about what was imported from Postman and allow users to fix any issues with missing imports like (auth, vars, and other details).
This code needs a lot of improvements and optimization, particularly in design and functionality.
Contribution Checklist:
Demo:
Import-summary-demo.mp4