From 94a9606fd5061e19118183b45f23f5305f6339a1 Mon Sep 17 00:00:00 2001 From: MasterHW <43460021+MasterHW@users.noreply.github.com> Date: Mon, 24 Feb 2025 14:19:21 -0700 Subject: [PATCH 1/4] tweaked verbiage --- packages/builder/src/components/base/InputLabel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/components/base/InputLabel.tsx b/packages/builder/src/components/base/InputLabel.tsx index 1e778f89ab..ad1873dba8 100644 --- a/packages/builder/src/components/base/InputLabel.tsx +++ b/packages/builder/src/components/base/InputLabel.tsx @@ -22,7 +22,7 @@ export default function InputLabel({ className="shrink ml-2 px-2 py-1" bg="purple.900" hasArrow - label="This info will be hidden from your project’s Explorer page." + label="This info won't go on your project's Explorer page, but is still readable on-chain." > From 3ea13ca18fd0a56650d4f241e10455391153db27 Mon Sep 17 00:00:00 2001 From: MasterHW <43460021+MasterHW@users.noreply.github.com> Date: Mon, 24 Feb 2025 14:31:11 -0700 Subject: [PATCH 2/4] hidden to unlisted --- packages/builder/src/components/base/InputLabel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/components/base/InputLabel.tsx b/packages/builder/src/components/base/InputLabel.tsx index ad1873dba8..b630e47079 100644 --- a/packages/builder/src/components/base/InputLabel.tsx +++ b/packages/builder/src/components/base/InputLabel.tsx @@ -26,7 +26,7 @@ export default function InputLabel({ > - Hidden + Unlisted )} From 61c0bfe1b4451fa357ab555abbfcffc1d2e628da Mon Sep 17 00:00:00 2001 From: MasterHW <43460021+MasterHW@users.noreply.github.com> Date: Mon, 24 Feb 2025 16:04:22 -0700 Subject: [PATCH 3/4] update credentials api to refactor --- packages/builder/src/components/providers/Github.tsx | 4 +++- packages/builder/src/components/providers/Twitter.tsx | 3 ++- .../src/components/providers/identity/credentials.ts | 11 +++++++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/components/providers/Github.tsx b/packages/builder/src/components/providers/Github.tsx index dc3e7fffa2..e8cde0a8c0 100644 --- a/packages/builder/src/components/providers/Github.tsx +++ b/packages/builder/src/components/providers/Github.tsx @@ -74,7 +74,9 @@ export default function Github({ await fetchVerifiableCredential( process.env.REACT_APP_PASSPORT_IAM_URL || "", { - type: CredentialProvider.Github, + type: "VerifiableCredential", + types: [CredentialProvider.Github], + version: "0.0.0", address: props.account || "", org, diff --git a/packages/builder/src/components/providers/Twitter.tsx b/packages/builder/src/components/providers/Twitter.tsx index 78d77f3c20..ee2eda403c 100644 --- a/packages/builder/src/components/providers/Twitter.tsx +++ b/packages/builder/src/components/providers/Twitter.tsx @@ -66,7 +66,8 @@ export default function Twitter({ await fetchVerifiableCredential( process.env.REACT_APP_PASSPORT_IAM_URL || "", { - type: CredentialProvider.Twitter, + type: "VerifiableCredential", + types: [CredentialProvider.Twitter], version: "0.0.0", address: props.account || "", proofs: { diff --git a/packages/builder/src/components/providers/identity/credentials.ts b/packages/builder/src/components/providers/identity/credentials.ts index cbdc4ade85..44a7f8be31 100644 --- a/packages/builder/src/components/providers/identity/credentials.ts +++ b/packages/builder/src/components/providers/identity/credentials.ts @@ -51,7 +51,7 @@ export class VerificationError extends Error { // Fetch a verifiableCredential export const fetchVerifiableCredential = async ( iamUrl: string, - payload: GHOrgRequestPayload, + payload: any, signer: { signMessage: (message: string) => Promise } ): Promise => { // first pull a challenge that can be signed by the user @@ -143,9 +143,12 @@ export function openOauthWindow( const channel = new BroadcastChannel(broadcastChannelName); // timeout after 5 minutes - const timeout = setTimeout(() => { - reject(new VerificationError("Authorization timed out")); - }, 1000 * 60 * 5); + const timeout = setTimeout( + () => { + reject(new VerificationError("Authorization timed out")); + }, + 1000 * 60 * 5 + ); channel.addEventListener("message", (event: any) => { const eventData = event.data as { From 6a328b779da9f2dfc7ff9dd472eaa604486b57bb Mon Sep 17 00:00:00 2001 From: MasterHW <43460021+MasterHW@users.noreply.github.com> Date: Mon, 24 Feb 2025 16:13:45 -0700 Subject: [PATCH 4/4] fix for linter --- .../src/components/providers/identity/credentials.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/components/providers/identity/credentials.ts b/packages/builder/src/components/providers/identity/credentials.ts index 44a7f8be31..aafa6a9661 100644 --- a/packages/builder/src/components/providers/identity/credentials.ts +++ b/packages/builder/src/components/providers/identity/credentials.ts @@ -143,12 +143,9 @@ export function openOauthWindow( const channel = new BroadcastChannel(broadcastChannelName); // timeout after 5 minutes - const timeout = setTimeout( - () => { - reject(new VerificationError("Authorization timed out")); - }, - 1000 * 60 * 5 - ); + const timeout = setTimeout(() => { + reject(new VerificationError("Authorization timed out")); + }, 1000 * 60 * 5); channel.addEventListener("message", (event: any) => { const eventData = event.data as {