refactor(web): split editor with execution componet into specialized …#114
refactor(web): split editor with execution componet into specialized …#114andrewmelchor merged 3 commits intomainfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8ab5e5d852
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Greptile SummaryThis PR successfully splits the monolithic 373-line Key observations:
Confidence Score: 4/5
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["EditorWithExecution\n(path prop)"] -->|"fileType === 'http'"| B["HttpEditorWithExecution"]
A -->|"fileType === 'script' | 'test'"| C["ScriptEditorWithExecution"]
B --> D["useHttpRequestWorkspace\n(requests, selection, drafts, actions)"]
B --> E["useEditorPanelState\n(collapsed, setCollapsed, toggle)"]
B --> F["useObserver / useWorkspace\n/ useConnection"]
C --> E
C --> G["useObserver / useWorkspace\n/ useScriptRunner / useTestRunner"]
D --> H["useRequestParseDetails"]
D --> I["useRequestHeaderDraftController"]
D --> J["useRequestBodyDraftController"]
E --> K[("localStorage\ntreq:editor:resultsPanelCollapsed")]
Last reviewed commit: b3b83e8 |
Summary
Splits the monolithic EditorWithExecution component (373 lines) into focused, single-responsibility components with reusable hooks.