From 1d03e1d5ea9a91d187fe826d08c1d45b9afe80c8 Mon Sep 17 00:00:00 2001 From: David Coomber <47242934+dcoomber@users.noreply.github.com> Date: Sat, 18 Mar 2023 10:53:49 +0200 Subject: [PATCH] Adjusted terminology on requests (REST, GraphQL, Form URL encoded) --- .../RequestPane/GraphQLRequestPane/useGraphqlSchema.js | 4 ++-- .../RequestPane/RequestBody/RequestBodyMode/index.js | 2 +- .../bruno-app/src/components/Sidebar/NewRequest/index.js | 6 +++--- packages/bruno-app/src/utils/collections/index.js | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/bruno-app/src/components/RequestPane/GraphQLRequestPane/useGraphqlSchema.js b/packages/bruno-app/src/components/RequestPane/GraphQLRequestPane/useGraphqlSchema.js index e6fc4295..7642f302 100644 --- a/packages/bruno-app/src/components/RequestPane/GraphQLRequestPane/useGraphqlSchema.js +++ b/packages/bruno-app/src/components/RequestPane/GraphQLRequestPane/useGraphqlSchema.js @@ -32,7 +32,7 @@ const useGraphqlSchema = (endpoint, environment) => { setSchema(buildClientSchema(s.data)); setIsLoading(false); localStorage.setItem(localStorageKey, JSON.stringify(s.data)); - toast.success('Graphql Schema loaded successfully'); + toast.success('GraphQL Schema loaded successfully'); } else { return Promise.reject(new Error('An error occurred while introspecting schema')); } @@ -40,7 +40,7 @@ const useGraphqlSchema = (endpoint, environment) => { .catch((err) => { setIsLoading(false); setError(err); - toast.error('Error occured while loading Graphql Schema'); + toast.error('Error occured while loading GraphQL Schema'); }); }; diff --git a/packages/bruno-app/src/components/RequestPane/RequestBody/RequestBodyMode/index.js b/packages/bruno-app/src/components/RequestPane/RequestBody/RequestBodyMode/index.js index 1614e28f..65e34f43 100644 --- a/packages/bruno-app/src/components/RequestPane/RequestBody/RequestBodyMode/index.js +++ b/packages/bruno-app/src/components/RequestPane/RequestBody/RequestBodyMode/index.js @@ -52,7 +52,7 @@ const RequestBodyMode = ({ item, collection }) => { onModeChange('formUrlEncoded'); }} > - Form Url Encoded + Form URL Encoded
Raw
{ checked={formik.values.requestType === 'http-request'} /> { checked={formik.values.requestType === 'graphql-request'} />
@@ -145,7 +145,7 @@ const NewRequest = ({ collection, item, isEphermal, onClose }) => {
diff --git a/packages/bruno-app/src/utils/collections/index.js b/packages/bruno-app/src/utils/collections/index.js index bdb7d8cc..94e5f7b7 100644 --- a/packages/bruno-app/src/utils/collections/index.js +++ b/packages/bruno-app/src/utils/collections/index.js @@ -433,7 +433,7 @@ export const humanizeRequestBodyMode = (mode) => { break; } case 'formUrlEncoded': { - label = 'Form Url Encoded'; + label = 'Form URL Encoded'; break; } case 'multipartForm': {