Feat/ Import collection summary#4086
Draft
Pragadesh-45 wants to merge 23 commits intousebruno:mainfrom
Draft
Conversation
…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
This file contains hidden or 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
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.jsonwill 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