Fix Clerk user list decoding and add logo
GET /v1/users returns a bare JSON array, not a {"data":[...]} envelope
(total_count is a separate endpoint), so decode directly into a slice.
The previous envelope-first decode errored on the array and never
reached the fallback, so ListAccounts failed against the real API.
Treat deprovisioned users as inactive. Add the missing Clerk
third-party logo and its wiring, and document why the registration
sets no probe URL or name resolver.
Record the driver-test cassette against a live Clerk development
instance, scrubbed of PII and instance identifiers (emails to
example.com, image_url payloads and CF transport headers dropped).
A locked account verifies the inactive path.
Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
16
packages/ui/src/Atoms/ThirdParties/Clerk.tsx
Normal file
16
packages/ui/src/Atoms/ThirdParties/Clerk.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { ComponentProps } from "react";
|
||||
|
||||
export function Clerk(props: ComponentProps<"svg">) {
|
||||
return (
|
||||
<svg
|
||||
viewBox="0 0 24 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
{...props}
|
||||
>
|
||||
<path
|
||||
d="m21.47 20.829-2.881-2.881a.572.572 0 0 0-.7-.084 6.854 6.854 0 0 1-7.081 0 .576.576 0 0 0-.7.084l-2.881 2.881a.576.576 0 0 0-.103.69.57.57 0 0 0 .166.186 12 12 0 0 0 14.113 0 .58.58 0 0 0 .239-.423.576.576 0 0 0-.172-.453Zm.002-17.668-2.88 2.88a.569.569 0 0 1-.701.084A6.857 6.857 0 0 0 8.724 8.08a6.862 6.862 0 0 0-1.222 3.692 6.86 6.86 0 0 0 .978 3.764.573.573 0 0 1-.083.699l-2.881 2.88a.567.567 0 0 1-.864-.063A11.993 11.993 0 0 1 6.771 2.7a11.99 11.99 0 0 1 14.637-.405.566.566 0 0 1 .232.418.57.57 0 0 1-.168.448Zm-7.118 12.261a3.427 3.427 0 1 0 0-6.854 3.427 3.427 0 0 0 0 6.854Z"
|
||||
fill="#6C47FF"
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
@@ -18,6 +18,7 @@ import { Anthropic } from "./Anthropic";
|
||||
import { Asana } from "./Asana";
|
||||
import { Bitbucket } from "./Bitbucket";
|
||||
import { Brex } from "./Brex";
|
||||
import { Clerk } from "./Clerk";
|
||||
import { ClickUp } from "./ClickUp";
|
||||
import { Cloudflare } from "./Cloudflare";
|
||||
import { Cursor } from "./Cursor";
|
||||
@@ -55,6 +56,7 @@ const thirdParties: Record<string, FC<ComponentProps<"svg">>> = {
|
||||
ASANA: Asana,
|
||||
BITBUCKET: Bitbucket,
|
||||
BREX: Brex,
|
||||
CLERK: Clerk,
|
||||
CLICKUP: ClickUp,
|
||||
CLOUDFLARE: Cloudflare,
|
||||
CURSOR: Cursor,
|
||||
|
||||
@@ -2,6 +2,7 @@ export { Anthropic } from "./Anthropic";
|
||||
export { Asana } from "./Asana";
|
||||
export { Bitbucket } from "./Bitbucket";
|
||||
export { Brex } from "./Brex";
|
||||
export { Clerk } from "./Clerk";
|
||||
export { ClickUp } from "./ClickUp";
|
||||
export { Cloudflare } from "./Cloudflare";
|
||||
export { Cursor } from "./Cursor";
|
||||
|
||||
Reference in New Issue
Block a user