refactor(web): add HTTP Editor Context and eliminate prop drilling#115
Merged
andrewmelchor merged 2 commits intomainfrom Mar 4, 2026
Merged
refactor(web): add HTTP Editor Context and eliminate prop drilling#115andrewmelchor merged 2 commits intomainfrom
andrewmelchor merged 2 commits intomainfrom
Conversation
Greptile SummaryThis PR introduces an HTTP Request Editor context ( Key changes:
Concerns:
Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["HttpEditorWithExecution\n(editor/)"]
B["HttpRequestEditorProvider\n(editor/HttpRequestEditorContext)"]
C["HttpRequestWorkspaceState\n(hooks/useHttpRequestWorkspace)"]
D["RequestWorkspaceTabs\n(request-workspace/)"]
E["useHttpRequestEditor()\n → workspace.selection\n → workspace.requests\n → workspace.drafts"]
F["RequestWorkspaceHeadersPanel"]
G["RequestWorkspaceBodyPanel"]
H["RequestWorkspaceParamsPanel"]
A -->|"creates & passes store"| B
A -->|"renders inside provider"| D
C -->|"HttpRequestWorkspaceState"| B
B -->|"provides context"| D
D -->|"consumes context"| E
E --> F
E --> G
E --> H
Last reviewed commit: 4547867 |
packages/web/src/components/request-workspace/request-workspace-tabs.tsx
Outdated
Show resolved
Hide resolved
packages/web/src/components/request-workspace/request-workspace-tabs.tsx
Outdated
Show resolved
Hide resolved
…component structure - Fix createSimpleContext to use JSX syntax for proper SolidJS reactivity - Remove dead code guard clause from ScriptEditorWithExecution - Move HttpRequestEditorContext to shared context/ directory to eliminate cross-module coupling - Use createMemo for selectedRequest accessor consistency - Fix relative import paths after file relocation
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
New Context System