feat: Right sidebar, auth system overhaul, save/draft workflow, and code snippet generator#6
Merged
feat: Right sidebar, auth system overhaul, save/draft workflow, and code snippet generator#6
Conversation
- Add SaveRequestDialog for saving draft requests with a searchable collection tree. - Introduce _DraftControllerMixin to manage draft request tabs in the main window. - Update tab_controller to handle draft names and breadcrumb updates for unsaved requests. - Enhance MainWindow to support opening draft requests and saving them to collections. - Create tests for the new SaveRequestDialog and draft request functionalities. - Ensure UI elements are styled appropriately for the new dialog and interactions.
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.
Summary
Major feature batch adding a right sidebar panel, a complete 14-type auth system with OAuth 2.0 support, save/draft request workflow, and an expanded code snippet generator covering 23 languages.
New Features
Right Sidebar (sidebar)
VariablesPanel— read-only view of active environment variables with local override indicatorsSnippetPanel— inline code snippet generator that live-updates as the request is edited, with language selector and copy-to-clipboardAuth System (auth, auth_handler.py)
_AuthMixinused by bothRequestEditorandFolderEditorwith auth inheritanceauth_serializerfor load/save across all typesapply_auth()inauth_handler.pyshared by HTTP send and snippet generationOAuth2Page(grant-type switching UI) andOAuth2Service(4 grant types: Authorization Code, Client Credentials, Password, Implicit)Save & Draft Workflow
SaveRequestDialog— save draft requests to a collection with folder picker_DraftControllerMixin— draft tab open/save lifecycle managementNewItemPopup) in collection header for creating requests/collectionsCode Snippet Generator (snippet_generator)
apply_auth()pathUX Improvements
QMouseEvent.pos()replaced withevent.position().toPoint()Stats