From a4f5e2bdb9d24c33d79c66cdc51436db0c72c6a6 Mon Sep 17 00:00:00 2001 From: Hargun Kaur Date: Sun, 20 Oct 2024 03:05:34 +0530 Subject: [PATCH 1/4] added consistent styling for buttons and tags Signed-off-by: Hargun Kaur --- library/src/components/Schema.tsx | 8 ++++---- library/src/containers/Messages/Message.tsx | 4 ++-- library/src/containers/Messages/MessageExample.tsx | 2 +- library/src/containers/Operations/Operation.tsx | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/library/src/components/Schema.tsx b/library/src/components/Schema.tsx index 61dd88ac8..8ec964f8a 100644 --- a/library/src/components/Schema.tsx +++ b/library/src/components/Schema.tsx @@ -209,7 +209,7 @@ export const Schema: React.FunctionComponent = ({ {schema.default() !== undefined && (
Default value: - + {SchemaHelpers.prettifyValue(schema.default())}
@@ -217,7 +217,7 @@ export const Schema: React.FunctionComponent = ({ {schema.const() !== undefined && (
Const: - + {SchemaHelpers.prettifyValue(schema.const())}
@@ -228,7 +228,7 @@ export const Schema: React.FunctionComponent = ({ {schema.enum()?.map((e, idx) => (
  • {SchemaHelpers.prettifyValue(e)}
  • @@ -259,7 +259,7 @@ export const Schema: React.FunctionComponent = ({ {schema.examples()?.map((e, idx) => (
  • {SchemaHelpers.prettifyValue(e)}
  • diff --git a/library/src/containers/Messages/Message.tsx b/library/src/containers/Messages/Message.tsx index 2b30b435b..62d062152 100644 --- a/library/src/containers/Messages/Message.tsx +++ b/library/src/containers/Messages/Message.tsx @@ -91,7 +91,7 @@ export const Message: React.FunctionComponent = ({
    Message ID - + {messageId}
    @@ -102,7 +102,7 @@ export const Message: React.FunctionComponent = ({
    Correlation ID - + {correlationId.location()}
    diff --git a/library/src/containers/Messages/MessageExample.tsx b/library/src/containers/Messages/MessageExample.tsx index d2fcb7c63..8fcf1f305 100644 --- a/library/src/containers/Messages/MessageExample.tsx +++ b/library/src/containers/Messages/MessageExample.tsx @@ -70,7 +70,7 @@ export const Example: React.FunctionComponent = ({ className: 'fill-current text-gray-200', }} > - + {type} diff --git a/library/src/containers/Operations/Operation.tsx b/library/src/containers/Operations/Operation.tsx index af98dd6c7..504759e02 100644 --- a/library/src/containers/Operations/Operation.tsx +++ b/library/src/containers/Operations/Operation.tsx @@ -170,7 +170,7 @@ export const OperationInfo: React.FunctionComponent = (props) => { const specV = useSpec().version(); const version = specV.localeCompare('2.6.0', undefined, { numeric: true }); const isAsyncAPIv2 = version === 0; - const { borderColor, typeLabel } = + const { backgroundColor, typeLabel } = CommonHelpers.getOperationDesignInformation({ type, config, @@ -181,7 +181,7 @@ export const OperationInfo: React.FunctionComponent = (props) => {

    {typeLabel} @@ -223,7 +223,7 @@ export const OperationInfo: React.FunctionComponent = (props) => {
    Operation ID - + {operationId}
    From cc67a9d568842f9676dd96e34e11ca0d58de843f Mon Sep 17 00:00:00 2001 From: Hargun Kaur Date: Wed, 23 Oct 2024 15:37:44 +0530 Subject: [PATCH 2/4] added changes Signed-off-by: Hargun Kaur --- library/src/containers/Messages/Message.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/src/containers/Messages/Message.tsx b/library/src/containers/Messages/Message.tsx index 62d062152..2b30b435b 100644 --- a/library/src/containers/Messages/Message.tsx +++ b/library/src/containers/Messages/Message.tsx @@ -91,7 +91,7 @@ export const Message: React.FunctionComponent = ({
    Message ID - + {messageId}
    @@ -102,7 +102,7 @@ export const Message: React.FunctionComponent = ({
    Correlation ID - + {correlationId.location()}
    From 141f3fe1930108838c2af1ea32522c975334343a Mon Sep 17 00:00:00 2001 From: Hargun Kaur Date: Wed, 23 Oct 2024 15:40:24 +0530 Subject: [PATCH 3/4] added changes Signed-off-by: Hargun Kaur --- library/src/containers/Messages/Message.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/src/containers/Messages/Message.tsx b/library/src/containers/Messages/Message.tsx index 2b30b435b..f7466e57e 100644 --- a/library/src/containers/Messages/Message.tsx +++ b/library/src/containers/Messages/Message.tsx @@ -91,7 +91,7 @@ export const Message: React.FunctionComponent = ({
    Message ID - + {messageId}
    @@ -102,7 +102,7 @@ export const Message: React.FunctionComponent = ({
    Correlation ID - + {correlationId.location()}
    From 76246cb43cc9ac6ec7a2150b4be60593d5d23897 Mon Sep 17 00:00:00 2001 From: Hargun Kaur Date: Wed, 23 Oct 2024 15:41:45 +0530 Subject: [PATCH 4/4] reverted changes in messageExample file Signed-off-by: Hargun Kaur --- library/src/containers/Messages/MessageExample.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/containers/Messages/MessageExample.tsx b/library/src/containers/Messages/MessageExample.tsx index 8fcf1f305..d2fcb7c63 100644 --- a/library/src/containers/Messages/MessageExample.tsx +++ b/library/src/containers/Messages/MessageExample.tsx @@ -70,7 +70,7 @@ export const Example: React.FunctionComponent = ({ className: 'fill-current text-gray-200', }} > - + {type}