docs: add loyalty plugin routes to OAS (#12811)

* generated OAS

* remove unused schemas

* generated specs

* add cloud badge for routes

* add to loyalty plugin page

* allow clicking the tooltip
This commit is contained in:
Shahed Nasser
2025-06-24 19:17:55 +03:00
committed by GitHub
parent 3826bde591
commit 93cf79cb0f
164 changed files with 16001 additions and 88 deletions

View File

@@ -8,7 +8,15 @@ import dynamic from "next/dynamic"
import TagsOperationDescriptionSectionParameters from "./Parameters"
import MDXContentClient from "@/components/MDXContent/Client"
import { useArea } from "../../../../providers/area"
import { Feedback, Badge, Link, FeatureFlagNotice, H2, Tooltip } from "docs-ui"
import {
Feedback,
Badge,
Link,
FeatureFlagNotice,
H2,
Tooltip,
MarkdownContent,
} from "docs-ui"
import { usePathname } from "next/navigation"
import { TagsOperationDescriptionSectionWorkflowBadgeProps } from "./WorkflowBadge"
import { TagsOperationDescriptionSectionEventsProps } from "./Events"
@@ -79,6 +87,24 @@ const TagsOperationDescriptionSection = ({
</Badge>
</Tooltip>
)}
{operation["x-badges"]?.map((badge, index) => (
<Tooltip
key={index}
tooltipChildren={
<MarkdownContent
allowedElements={["a", "strong", "em", "br"]}
unwrapDisallowed={true}
>
{badge.description}
</MarkdownContent>
}
clickable={true}
>
<Badge variant={badge.variant || "neutral"} className="ml-0.5">
{badge.text}
</Badge>
</Tooltip>
))}
</H2>
<div className="my-1">
<MDXContentClient content={operation.description} />