Skip to content

Commit dd5860e

Browse files
committed
2 parents fb2f49f + 8f7b974 commit dd5860e

File tree

5 files changed

+15
-18
lines changed

5 files changed

+15
-18
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ Swell is a one-stop shop for sending and monitoring your API requests:
5050
style="display: block; margin: 10px auto 30px; border: 1px solid black;" />
5151

5252
- _Send Requests Directly to an Endpoint_: You are able to immediately send a request to an endpoint OR stage a request in your workspace for multi-level testing.
53-
<img src="./ReadMeGifs/Gifs/DirectSendRequest.gif"
54-
style="display: block; margin: 10px auto 30px; border: 1px solid black;" />
5553

5654
- _Scripting in Swell_: If you favor test-driven development, Swell allows you to write assertion tests to aid defining and testing backend API services.
5755
<img src="./ReadMeGifs/Gifs/Assertion-Testing.gif"
@@ -60,11 +58,8 @@ Swell is a one-stop shop for sending and monitoring your API requests:
6058
- _Workspaces_: Swell allows you to save workspaces for easier testing of multiple requests.
6159

6260
- _Preview_: You can now view a rendered preview of certain API responses (HTML)
63-
<img src="./ReadMeGifs/Gifs/AdditionalFeatures.gif"
64-
style="display: block; margin: 10px auto 30px; border: 1px solid black;" />
61+
6562
- _Collection Runner_: You can also stage requests in the workspace and automate the process of sending off each one. No need to manually press send on each one; instead each request will fire off in the order of staging.
66-
<img src="./ReadMeGifs/Gifs/CollectionTest.gif"
67-
style="display: block; margin: 10px auto 30px; border: 1px solid black;" />
6863

6964
## Experimental Features
7065

src/client/components/main/MainContainer.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,7 @@ const mapDispatchToProps = (dispatch: AppDispatch) => ({
100100

101101
function MainContainer(props: $TSFixMeObject) {
102102
return (
103-
<Box
104-
sx={{
105-
width: '75%',
106-
// overflowY: 'scroll',
107-
// display: 'flex',
108-
// flexDirection: 'column'
109-
}}
110-
>
103+
<Box sx={{ width: '75%' }}>
111104
<Split direction="vertical" gutterSize={5} style={{ height: '100%' }}>
112105
<Box sx={{ display: 'flex' }}>
113106
<Routes>
@@ -122,7 +115,10 @@ function MainContainer(props: $TSFixMeObject) {
122115
<Route path="/openapi" element={<OpenAPIComposer {...props} />} />
123116
<Route path="/webhook" element={<WebhookComposer {...props} />} />
124117
<Route path="/trpc" element={<TRPCComposer {...props} />} />
125-
<Route path="/mockserver" element={<MockServerComposer {...props} />} />
118+
<Route
119+
path="/mockserver"
120+
element={<MockServerComposer {...props} />}
121+
/>
126122
</Routes>
127123
</Box>
128124
<ResponsePaneContainer />

src/client/components/main/tRPC/TRPCMethodAndEndpointEntryForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const TRPCMethodAndEndpointEntryForm = () => {
1616
const dispatch = useDispatch();
1717

1818
useEffect(() => {
19-
const closeDropdown = (event) => {
19+
const closeDropdown = (event: MouseEvent) => {
2020
if (!dropdownEl.current.contains(event.target)) {
2121
setDropdownIsActive(false);
2222
}
@@ -48,7 +48,7 @@ const TRPCMethodAndEndpointEntryForm = () => {
4848
}
4949
};
5050

51-
const urlChangeHandler = (e) => {
51+
const urlChangeHandler = (e: React.ChangeEvent<HTMLInputElement>) => {
5252
const url: string = e.target.value;
5353

5454
dispatch(

src/client/controllers/reqResController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const connectionController = {
146146
// return this.openConnectionArray.find((obj) => (obj.id = id));
147147
// },
148148

149-
setReqResConnectionToClosed(id: number): void {
149+
setReqResConnectionToClosed(id: string): void {
150150
const reqResArr = Store.getState().reqRes.reqResArray;
151151

152152
const foundReqRes: ReqRes = JSON.parse(

src/client/toolkit-refactor/reqRes/reqResSlice.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
66
import { ReqRes } from '../../../types';
77

8+
/**
9+
* @todo based on current useage type def is innaccurate or incomplete
10+
* currentReponse stores the last returned ReqRes type
11+
* in theory currentResponse property is unnessecary as the last element in the
12+
* reqResArray is the current response but it is used throughout the app
13+
*/
814
type ReqResStore = {
915
reqResArray: ReqRes[];
1016
currentResponse: ReqRes;

0 commit comments

Comments
 (0)