From a1103bfd6989138e0c870ede05224e48489f84e8 Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Tue, 3 Feb 2026 20:26:10 +0530 Subject: [PATCH 1/2] portal: OpenApiEndpoint UI tweaks --- .../portal/src/app/wallets/get-users/page.mdx | 2 ++ .../Document/APIEndpointMeta/ApiEndpoint.tsx | 25 +++++++++++-------- .../APIEndpointMeta/DynamicRequestExample.tsx | 17 +++++++------ .../APIEndpointMeta/OpenApiEndpoint.tsx | 7 +++--- .../APIEndpointMeta/RequestExample.tsx | 6 ++--- 5 files changed, 31 insertions(+), 26 deletions(-) diff --git a/apps/portal/src/app/wallets/get-users/page.mdx b/apps/portal/src/app/wallets/get-users/page.mdx index 6fb35c8b225..2dbf8b71db2 100644 --- a/apps/portal/src/app/wallets/get-users/page.mdx +++ b/apps/portal/src/app/wallets/get-users/page.mdx @@ -49,6 +49,8 @@ Required headers: +
+ For ecosystem wallets, include the ecosystem headers in your requests. diff --git a/apps/portal/src/components/Document/APIEndpointMeta/ApiEndpoint.tsx b/apps/portal/src/components/Document/APIEndpointMeta/ApiEndpoint.tsx index 74b51a82b24..ea86c85aa64 100644 --- a/apps/portal/src/components/Document/APIEndpointMeta/ApiEndpoint.tsx +++ b/apps/portal/src/components/Document/APIEndpointMeta/ApiEndpoint.tsx @@ -130,12 +130,12 @@ export function ApiEndpoint(props: { metadata: ApiEndpointMeta }) { hasMultipleExamples={true} /> ) : ( -
+
({ code: ( Response -
+
- + {responseKeys.map((status) => ( -
+
@@ -212,7 +213,7 @@ export function ApiEndpoint(props: { metadata: ApiEndpointMeta }) { {responseKeys.map((status) => ( {props.title} - + {props.parameters.length}
} accordionItemClassName="border-0 my-0" accordionTriggerClassName="p-4 hover:bg-muted/50 transition-colors" + headingClassName="!no-underline" > -
+
{props.parameters .sort((a, b) => { if (a.required === b.required) { @@ -266,16 +268,16 @@ function InlineParameterItem({ param }: { param: APIParameter }) { return (
- + {param.name} {param.type && ( - + {param.type} )} {param.required && ( - + Required )} @@ -289,6 +291,7 @@ function InlineParameterItem({ param }: { param: APIParameter }) {
Example:
- + {param.name} {param.type && ( - + {param.type} )} {param.required && ( - + Required )} @@ -49,15 +49,15 @@ function InlineParameterItem({ param }: { param: APIParameter }) { )} {param.example !== undefined && ( -
- Example: +
+ Example
{props.title} - + {props.parameters.length}
@@ -138,7 +139,7 @@ export function DynamicRequestExample(props: DynamicRequestExampleProps) { return ( -
+
({ code: ( diff --git a/apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx b/apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx index 1b6cdd5383d..6c3a9ead66d 100644 --- a/apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx +++ b/apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx @@ -5,6 +5,7 @@ import { ApiEndpoint, type ApiEndpointMeta, } from "./ApiEndpoint"; +import { Spinner } from "@workspace/ui/components/spinner"; // OpenAPI 3.0 types (simplified for our needs) type OpenApiSpec = OpenAPIV3_1.Document; @@ -455,10 +456,8 @@ function transformOpenApiToApiEndpointMeta( function LoadingFallback() { return ( -
-
- Loading API documentation... -
+
+
); } diff --git a/apps/portal/src/components/Document/APIEndpointMeta/RequestExample.tsx b/apps/portal/src/components/Document/APIEndpointMeta/RequestExample.tsx index ac8f7186d01..a1ed244f87c 100644 --- a/apps/portal/src/components/Document/APIEndpointMeta/RequestExample.tsx +++ b/apps/portal/src/components/Document/APIEndpointMeta/RequestExample.tsx @@ -109,7 +109,7 @@ export function RequestExample(props: { }} value={selectedFormat} > - + @@ -144,7 +144,7 @@ export function RequestExample(props: { }} value={selectedExampleType} > - + @@ -169,7 +169,7 @@ export function RequestExample(props: { }} value={selectedExample?.label} > - + From 4022e335cb5f8c52a69ecf085a19fc0b9ea7a5fb Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Tue, 3 Feb 2026 21:04:15 +0530 Subject: [PATCH 2/2] fix formatting --- .../components/Document/APIEndpointMeta/OpenApiEndpoint.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx b/apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx index 6c3a9ead66d..4f5626e7c81 100644 --- a/apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx +++ b/apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx @@ -1,3 +1,4 @@ +import { Spinner } from "@workspace/ui/components/spinner"; import type { OpenAPIV3_1 } from "openapi-types"; import { cache, Suspense } from "react"; import { @@ -5,7 +6,6 @@ import { ApiEndpoint, type ApiEndpointMeta, } from "./ApiEndpoint"; -import { Spinner } from "@workspace/ui/components/spinner"; // OpenAPI 3.0 types (simplified for our needs) type OpenApiSpec = OpenAPIV3_1.Document; @@ -457,7 +457,7 @@ function transformOpenApiToApiEndpointMeta( function LoadingFallback() { return (
- +
); }