Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(links): update learn more link #2478

Merged
merged 3 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions platforms/src/Brightid/App-Bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ export class BrightidPlatform extends Platform {
clientId: string = null;
redirectUri: string = null;

banner = {
cta: {
label: "Learn more",
url: "https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/connecting-brightid-to-passport",
},
};

async handleVerifyContextId(userDid: string): Promise<boolean> {
try {
const res = await axios.post(
Expand Down
2 changes: 1 addition & 1 deletion platforms/src/Civic/App-Bindings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class CivicPlatform extends Platform {
cost. After passes have been issued to your linked wallet, select the corresponding box(es) below and click
SAVE. Gitcoin will check for passes and save those that are valid.{" "}
<a
href="https://support.gitcoin.co/gitcoin-knowledge-base/gitcoin-passport/how-do-i-add-passport-stamps/civic-stamp-verification-guide-for-gitcoin-passport"
href="https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/guide-to-add-civic-stamp-verification-to-passport"
style={{
color: "rgb(var(--color-foreground-2))",
textDecoration: "underline",
Expand Down
6 changes: 6 additions & 0 deletions platforms/src/Discord/App-Bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ export class DiscordPlatform extends Platform {
super();
this.clientId = options.clientId as string;
this.redirectUri = options.redirectUri as string;
this.banner = {
cta: {
label: "Learn more",
url: "https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/connecting-a-discord-account-to-passport",
},
};
}

async getOAuthUrl(state: string): Promise<string> {
Expand Down
4 changes: 2 additions & 2 deletions platforms/src/ETH/App-Bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export class ETHPlatform extends Platform {
the overall activity of the address.
`,
cta: {
label: "Find out more",
url: "https://support.gitcoin.co/gitcoin-knowledge-base/gitcoin-passport/navigating-your-ethereum-stamp-insights-and-updates",
label: "Learn more",
url: "https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/verifying-ethereum-transactions-to-passport",
},
};

Expand Down
4 changes: 4 additions & 0 deletions platforms/src/Ens/App-Bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export class EnsPlatform extends Platform {
banner = {
heading:
"The ENS stamp only recognizes ENS domains if they are set to your account as primary ENS (or reverse record).",
cta: {
label: "Learn more",
url: "https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/connecting-an-ens-account-to-passport",
},
};

async getProviderPayload(appContext: AppContext): Promise<ProviderPayload> {
Expand Down
4 changes: 2 additions & 2 deletions platforms/src/Gitcoin/App-Bindings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export class GitcoinPlatform extends Platform {
</div>
),
cta: {
label: "Find out more",
url: "https://support.gitcoin.co/gitcoin-knowledge-base/gitcoin-passport/understanding-your-eligibility-for-the-gitcoin-grants-stamp-on-gitcoin-passport",
label: "Learn more",
url: "https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/connecting-gitcoin-grants-to-passport",
},
};

Expand Down
4 changes: 4 additions & 0 deletions platforms/src/Github/App-Bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export class GithubPlatform extends Platform {
heading: "Verifying Contribution Activity",
content:
"For the Contribution Activity credentials, make sure your contribution data is public. Go to Settings > Public Profile > Contributions & Activity and uncheck 'Make profile private and hide activity'. Verify your contribution history with your Gitcoin Passport!",
cta: {
label: "Learn more",
url: "https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/connecting-a-github-account-to-passport",
},
};
}

Expand Down
4 changes: 4 additions & 0 deletions platforms/src/GnosisSafe/App-Bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export class GnosisSafePlatform extends Platform {
banner = {
heading:
"Currently, we only recognize Gnosis Safes on the Ethereum main network. So you can't get that stamp through your Gnosis Safes on other networks.",
cta: {
label: "Learn more",
url: "https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/gnosis-safe-stamp",
},
};

async getProviderPayload(appContext: AppContext): Promise<ProviderPayload> {
Expand Down
6 changes: 6 additions & 0 deletions platforms/src/Google/App-Bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ export class GooglePlatform extends Platform {
super();
this.clientId = options.clientId as string;
this.redirectUri = options.redirectUri as string;
this.banner = {
cta: {
label: "Learn more",
url: "https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/connecting-a-google-account-to-passport",
},
};
}

getOAuthUrl(state: string): Promise<string> {
Expand Down
26 changes: 0 additions & 26 deletions platforms/src/GtcStaking/App-Bindings.ts

This file was deleted.

53 changes: 53 additions & 0 deletions platforms/src/GtcStaking/App-Bindings.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/* eslint-disable */
import React from "react";
import { AppContext, PlatformOptions, ProviderPayload } from "../types";
import { Platform } from "../utils/platform";

export class GTCStakingPlatform extends Platform {
platformId = "GtcStaking";
path = "GtcStaking";
isEVM = true;
clientId: string = null;

constructor(options: PlatformOptions = {}) {
super();
this.state = options.state as string;
this.redirectUri = options.redirectUri as string;
}

async getProviderPayload(appContext: AppContext): Promise<ProviderPayload> {
const result = await Promise.resolve({});
return result;
}

getOAuthUrl(state: string): Promise<string> {
throw new Error("Method not implemented.");
}


banner = {
content: (
<div>
If you haven't staked yet, you can do so now.
<a
href="https://support.passport.xyz/passport-knowledge-base/gtc-staking/identity-staking-questions"
style={{
color: "rgb(var(--color-foreground-2))",
textDecoration: "underline",
cursor: "pointer",
paddingLeft: "2px",
}}
target="_blank"
rel="noreferrer"
>
Learn more
</a>
</div>
),
cta: {
label: "Identity Staking",
url: "https://www.staking.passport.gitcoin.co/",
},
};

}
4 changes: 4 additions & 0 deletions platforms/src/GuildXYZ/App-Bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export class GuildXYZPlatform implements Platform {

banner = {
heading: "*Qualifying guilds have more than 250 members",
cta: {
label: "Learn more",
url: "https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/guide-to-add-guild-stamp-to-passport",
},
};

async getProviderPayload(appContext: AppContext): Promise<ProviderPayload> {
Expand Down
2 changes: 1 addition & 1 deletion platforms/src/Holonym/App-Bindings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class HolonymPlatform implements Platform {
),
cta: {
label: "Learn more",
url: "https://support.gitcoin.co/gitcoin-knowledge-base/gitcoin-passport/how-do-i-add-passport-stamps/guide-to-add-holonym-stamp-to-gitcoin-passport",
url: "https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/guide-to-add-holonym-stamp-to-gitcoin-passport",
},
};

Expand Down
7 changes: 7 additions & 0 deletions platforms/src/Idena/App-Bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ export class IdenaPlatform extends Platform {
platformId = "Idena";
path = "idena";

banner = {
cta: {
label: "Learn more",
url: "https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/idena-stamp",
},
};

async getOAuthUrl(): Promise<string> {
const procedureUrl = process.env.NEXT_PUBLIC_PASSPORT_PROCEDURE_URL?.replace(/\/*?$/, "");
const idenaCallback = process.env.NEXT_PUBLIC_PASSPORT_IDENA_CALLBACK?.replace(/\/*?$/, "");
Expand Down
2 changes: 1 addition & 1 deletion platforms/src/Lens/App-Bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class LensPlatform extends Platform {
claiming your Handle.`,
cta: {
label: "Learn more",
url: "https://support.gitcoin.co/gitcoin-knowledge-base/gitcoin-passport/how-do-i-add-passport-stamps/guide-to-add-lens-stamp-to-gitcoin-passport",
url: "https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/guide-to-add-lens-stamp-to-gitcoin-passport",
},
};

Expand Down
6 changes: 6 additions & 0 deletions platforms/src/Linkedin/App-Bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ export class LinkedinPlatform extends Platform {
this.clientId = options.clientId as string;
this.redirectUri = options.redirectUri as string;
this.state = options.state as string;
this.banner = {
cta: {
label: "Learn more",
url: "https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/guide-to-add-a-linkedin-stamp-to-passport",
},
}
}

async getOAuthUrl(state: string): Promise<string> {
Expand Down
7 changes: 6 additions & 1 deletion platforms/src/Snapshot/App-Bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ export class SnapshotPlatform extends Platform {
platformId = "Snapshot";
path = "Snapshot";
isEVM = true;

banner = {
cta: {
label: "Learn more",
url: "https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/connecting-snapshot-to-passport",
},
};
async getProviderPayload(appContext: AppContext): Promise<ProviderPayload> {
const result = await Promise.resolve({});
return result;
Expand Down
4 changes: 4 additions & 0 deletions platforms/src/TrustaLabs/App-Bindings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export class TrustaLabsPlatform extends Platform {
<Link href="https://trusta-labs.gitbook.io/trustalabs/trustscan/q-and-a-for-sybil-score">Q&A</Link>.
</div>
),
cta: {
label: "Learn more",
url: "https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/guide-to-add-trusta-labs-stamp-to-passport",
},
};

async getProviderPayload(_appContext: AppContext): Promise<ProviderPayload> {
Expand Down
Loading